package com.ruoyi.zhjd.exp.modules.laboratorypenetration.entity;

import java.math.BigDecimal;
import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;

/**
 * @ClassName: ExpPenetrationEntity
 * @Description: 针入度
 * @author linhuawei
 * @since 2021-04-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@NoArgsConstructor
@AllArgsConstructor
@Builder
@ToString
@TableName("n_laboratory_penetration")
public class LaboratoryPenetrationEntity {

    @TableId(type = IdType.ASSIGN_UUID)
    private String id;// UUID保证数据唯一性
    private String deviceId;// 设备编号
    private String projectId;// 工程名称
    private String engineeringName;// 工程名称
    private String engineeringSite;// 施工部位

    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd")
    private String sampleName;// 样品名称
    private String sampleNo;//
    private String testType;

    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime startTime;// 开始时间

    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime endTime;// 结束时间

    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime uploadTime;// 上传时间
    private String average;// 针入度平均值 三次平行实验后的平均值


    private BigDecimal value1;
    private BigDecimal value2;
    private BigDecimal value3;

    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT, updateStrategy = FieldStrategy.NEVER)
    private LocalDateTime insertTime;//
    private BigDecimal minValue;//
    private BigDecimal maxValue;//
    private String isQualified;// 合格1或者不合格0

    private String baseCode;

    private String deptPkid;

}
